<?php

/**
* Answer form.
*
* @package    docplus.co.za
* @subpackage form
* @author     Fox Matuku
* @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
*/
class AnswerForm extends BaseAnswerForm
{
    public function configure()
    {                
        unset(
        $this['created_at'], $this['updated_at']
        );

        $this->widgetSchema['question_id'] = new sfWidgetFormInputHidden();
        $this->widgetSchema['doctor_id'] = new sfWidgetFormInputHidden();
        $this->validatorSchema['response'] = new sfValidatorString(array('max_length' => 2000, 'required' => true), array('required' => 'Your *response* is required.', 'max_length' => 'Only 2000 characters allowed!'));
    }
}
